home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / CBuilder / Setup / BCB / data.z / wpapi.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-09  |  2.7 KB  |  125 lines

  1. /*****************************************************************/
  2. /**               Microsoft Windows 4.00                        **/
  3. /**           Copyright (C) Microsoft Corp., 1995-1996          **/
  4. /*****************************************************************/
  5.  
  6. /* WPAPI.H -- WebPost Interface definitions
  7.  *
  8.  */
  9.  
  10. #ifndef _wpapi_h_
  11. #define _wpapi_h_
  12. #pragma option push -b
  13.  
  14.  
  15. //
  16. // Assume packing on DWORD boundary
  17. //
  18.  
  19. #include <pshpack4.h>
  20.  
  21.  
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25.  
  26. typedef struct tagWPSITEINFOA {
  27.     DWORD    dwSize;
  28.     DWORD    dwFlags;
  29.     LPSTR    lpszSiteName;
  30.     LPSTR    lpszSiteURL;
  31. } WPSITEINFOA, *LPWPSITEINFOA;
  32.  
  33. typedef struct tagWPSITEINFOW {
  34.     DWORD    dwSize;
  35.     DWORD    dwFlags;
  36.     LPWSTR    lpszSiteName;
  37.     LPWSTR    lpszSiteURL;
  38. } WPSITEINFOW, *LPWPSITEINFOW;
  39.  
  40. // dwFlag fro WPSITEINFO
  41. #define WPSF_CAN_BROWSE_DIR            0x00000001
  42. #define WPSF_NEEDS_COMMIT            0x00000002
  43. #define WPSF_CONNECTED_TO_NETWORK    0x00000004
  44. #define WPSF_LOGGED_IN_TO_SERVER    0x00000008
  45.  
  46. #ifdef UNICODE
  47. #define WPSITEINFO                WPSITEINFOW
  48. #define LPWPSITEINFO            LPWPSITEINFOW
  49.  
  50. #else
  51. #define WPSITEINFO                WPSITEINFOA
  52. #define LPWPSITEINFO            LPWPSITEINFOA
  53.  
  54. #endif
  55.  
  56.  
  57. // dwFlag for WpPost
  58. #define WPF_NO_RECURSIVE_POST        0x00000001
  59. #define WPF_NO_WIZARD                0x00000002
  60. #define WPF_MINIMAL_UI                0x00000004
  61. #define WPF_FIRST_FILE_AS_DEFAULT    0x00000008
  62.  
  63. DWORD WINAPI WpPostW(HWND hwnd, 
  64.                     DWORD cLocalPaths, LPWSTR *lppszLocalPaths, 
  65.                     LPDWORD lpcbSiteName, LPWSTR lpszSiteName,
  66.                     LPDWORD lpcbURL, LPWSTR lpszURL, 
  67.                     DWORD dwFlag);
  68. DWORD WINAPI WpListSitesW(LPDWORD lpcbSites, LPWPSITEINFOW lpSiteInfo,
  69.                             LPDWORD lpcSites);
  70. DWORD WINAPI WpDeleteSiteW(LPCWSTR lpszSiteName);
  71.  
  72. DWORD WINAPI
  73. WpBindToSiteW(
  74.     HWND    hwnd,
  75.     LPCWSTR    lpszSiteName,
  76.     LPCWSTR    lpszURL,
  77.     DWORD    dwFlag,
  78.     DWORD    dwReserved,
  79.     PVOID     *ppvObj);
  80.  
  81. DWORD WINAPI WpPostA(HWND hwnd,
  82.                     DWORD cLocalPaths, LPSTR *lppszLocalPaths, 
  83.                     LPDWORD lpcbSiteName, LPSTR lpszSiteName,
  84.                     LPDWORD lpcbURL, LPSTR lpszURL, 
  85.                     DWORD dwFlag);
  86. DWORD WINAPI WpListSitesA(LPDWORD lpcbSites, LPWPSITEINFOA lpSiteInfo,
  87.                             LPDWORD lpcSites);
  88. DWORD WINAPI WpDeleteSiteA(LPCSTR lpszSiteName);
  89.  
  90. DWORD WINAPI
  91. WpBindToSiteA(
  92.     HWND    hwnd,
  93.     LPCSTR    lpszSiteName,
  94.     LPCSTR    lpszURL,
  95.     DWORD    dwFlag,
  96.     DWORD    dwReserved,
  97.     PVOID     *ppvObj);
  98.  
  99.  
  100. #ifdef UNICODE
  101. #define WpPost                    WpPostW
  102. #define WpListSites                WpListSitesW
  103. #define WpDeleteSite            WpDeleteSiteW
  104. #define WpBindToSite            WpBindToSiteW
  105.  
  106. #else
  107. #define WpPost                    WpPostA
  108. #define WpListSites                WpListSitesA
  109. #define WpDeleteSite            WpDeleteSiteA
  110. #define WpBindToSite            WpBindToSiteA
  111.  
  112. #endif
  113.  
  114.  
  115. #ifdef __cplusplus
  116. }
  117. #endif
  118.  
  119.  
  120. #include <poppack.h>
  121.  
  122.  
  123. #pragma option pop
  124. #endif // _wpapi_h_
  125.